package com.masterclient.app.businessmodule.vipmodule.api;


import com.eoner.baselib.container.CommonBaseResponse;
import com.eoner.managerlibrary.netsign.core.FCRetrofitManager;
import com.masterclient.app.businessmodule.vipmodule.bean.Member;

import io.reactivex.Observable;


public class VipCenterService {

    private static VipCenterApi api;
    private static VipCenterService instance;

    public static VipCenterService getInstance() {
        synchronized (VipCenterService.class) {
            if (instance == null) {
                instance = new VipCenterService();
            }
        }
        return instance;
    }

    private VipCenterService() {
        api = FCRetrofitManager.getInstance().getRetrofit().create(VipCenterApi.class);
    }

    /**
     * 获取会员信息
     */
    public Observable<CommonBaseResponse<Member>> getVipData() {
        return api.getVipData();
    }


}
